package com.efast.dmom.mgmt.controller.les;

import com.efast.cafe.framework.bean.ResultBean;
import com.efast.dmom.mgmt.entity.les.TwInvPacktranHeader;
import com.efast.dmom.mgmt.service.les.TwInvPacktranHeaderService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * 5.3.3 补货管理（Web端）
 * 
 * @author Administrator
 *
 */
@Controller
@RequestMapping(value = "/twInvPacktranHeader")
@Api(description = "物流执行管理-->补货-->补货管理")
public class TwInvPacktranHeaderController {

	private final TwInvPacktranHeaderService twInvPacktranHeaderService;

	@Autowired
	public TwInvPacktranHeaderController(TwInvPacktranHeaderService twInvPacktranHeaderService) {
		this.twInvPacktranHeaderService = twInvPacktranHeaderService;
	}

	@ApiOperation(value = "【补货完成】", notes = "请求参数：")
	@RequestMapping(value = "/replenishmentFinish", method = RequestMethod.POST)
	public @ResponseBody ResultBean replenishmentFinish(@RequestBody TwInvPacktranHeader twInvPacktranHeader) {
		ResultBean result = new ResultBean(true, "'");
		twInvPacktranHeaderService.replenishmentFinish(twInvPacktranHeader);
		return result;
	}
}
